﻿using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using YArchitech.LIB;

namespace YArchitech.Plumbing.Model
{
	public partial class FormPictureInfo : System.Windows.Forms.Form
	{
		public FormPictureInfo()
		{
			this.InitializeComponent();
			base.Icon = Resource.YArchitechIcon;
		}

		public FormPictureInfo(string path)
		{
			this.InitializeComponent();
			base.Icon = Resource.YArchitechIcon;
			this.pictureBox.Image = Image.FromFile(path);
		}

		private void FormPictureInfo_KeyPress(object sender, KeyPressEventArgs e)
		{
			if (e.KeyChar == '\u001b')
			{
				base.Close();
			}
		}
	}
}
